package com.ruoyi.system.domain;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 管理授权企业对象 b_corp_info
 *
 * @author 刘治军
 * @date 2023-06-19
 */
public class CorpInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 系统内企业Id
     */
    private String id;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称")
    private String corpName;

    /**
     * 纳税识别号
     */
    @Excel(name = "纳税识别号")
    private String nssbh;

    /**
     * 信用代码
     */
    @Excel(name = "信用代码")
    private String ssxydm;
    @Excel(name = "单位地址")
    /**
     * 单位地址
     */
    @JSONField(name = "address")
    @JsonProperty("address")
    private String corpAddress;
    @Excel(name = "电话号码")
    /**
     * 电话号码
     */
    private String tel;
    @Excel(name = "开户行")
    /**
     * 开户行
     */
    private String issuingBank;

    @Excel(name = "银行账户")
    /**
     * 银行账户
     */
    private String account;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String contact;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String contactMbile;




    /**
     * 机器编码
     */
    @Excel(name = "机器编码")
    private String jqbm;

    /**
     * 授权企业Id
     */
    @Excel(name = "授权企业Id")
    private String corpId;
    @Excel(name = "授权企业AgentId")
    private Long agentId;

    /**
     * 授权业务
     */
    @Excel(name = "授权业务")
    private String bizId;

    /**
     * suiteTicket
     */
    @Excel(name = "suiteTicket")
    private String suiteTicket;

    /**
     * 过期日
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireAt;

    /**
     * accesstoken
     */
    @Excel(name = "accesstoken")
    private String accessToken;

    /**
     * accesstoken过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "accesstoken过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tokenExpireAt;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setNssbh(String nssbh) {
        this.nssbh = nssbh;
    }

    public String getNssbh() {
        return nssbh;
    }

    public void setSsxydm(String ssxydm) {
        this.ssxydm = ssxydm;
    }

    public String getSsxydm() {
        return ssxydm;
    }

    public String getCorpAddress() {
        return corpAddress;
    }

    public void setCorpAddress(String corpAddress) {
        this.corpAddress = corpAddress;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getIssuingBank() {
        return issuingBank;
    }

    public void setIssuingBank(String issuingBank) {
        this.issuingBank = issuingBank;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContact() {
        return contact;
    }

    public void setContactMbile(String contactMbile) {
        this.contactMbile = contactMbile;
    }

    public String getContactMbile() {
        return contactMbile;
    }

    public void setJqbm(String jqbm) {
        this.jqbm = jqbm;
    }

    public String getJqbm() {
        return jqbm;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public Long getAgentId() {
        return agentId;
    }

    public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }

    public String getBizId() {
        return bizId;
    }

    public void setSuiteTicket(String suiteTicket) {
        this.suiteTicket = suiteTicket;
    }

    public String getSuiteTicket() {
        return suiteTicket;
    }

    public void setExpireAt(Date expireAt) {
        this.expireAt = expireAt;
    }

    public Date getExpireAt() {
        return expireAt;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setTokenExpireAt(Date tokenExpireAt) {
        this.tokenExpireAt = tokenExpireAt;
    }

    public Date getTokenExpireAt() {
        return tokenExpireAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("corpName", getCorpName())
                .append("nssbh", getNssbh())
                .append("ssxydm", getSsxydm())
                .append("contact", getContact())
                .append("contactMbile", getContactMbile())
                .append("jqbm", getJqbm())
                .append("corpId", getCorpId())
                .append("agentId", getAgentId())
                .append("bizId", getBizId())
                .append("suiteTicket", getSuiteTicket())
                .append("expireAt", getExpireAt())
                .append("accessToken", getAccessToken())
                .append("tokenExpireAt", getTokenExpireAt())
                .toString();
    }
}
